Location

@Serializable
data class Location(val id: Int, val name: String, val region: Handle.Named<Region>?, val names: List<Name>, val gameIndices: List<GenerationGameIndex>, val areas: List<Handle.Named<LocationArea>>) : NamedModel(source)

Locations that can be visited within the games. They make up sizable portions of regions, like cities or routes. See: https://pokeapi.co/docs/v2#locations

Parameters

id

The identifier for this resource.

name

The name for this resource.

region

The region this location can be found in.

names

The name of this resource listed in different languages.

gameIndices

A list of the indices of this location in different games.

areas

A list of areas that can be found in this location.

Constructors

Link copied to clipboard
constructor(id: Int, name: String, region: Handle.Named<Region>?, names: List<Name>, gameIndices: List<GenerationGameIndex>, areas: List<Handle.Named<LocationArea>>)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override val id: Int
Link copied to clipboard
open override val name: String
Link copied to clipboard
Link copied to clipboard